package com.ruoyi.map.service.impl;

import com.ruoyi.map.domain.MapStation;
import com.ruoyi.map.domain.StationDevice;
import com.ruoyi.map.mapper.StationDeviceMapper;
import com.ruoyi.map.service.StationDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: my-ruoyi-master_202130504106_李航
 * @description:
 * @author: LiHang
 * @create: 2021-10-30 18:03
 **/
@Service
public class StationDeviceServiceImpl implements StationDeviceService {

    @Autowired
    StationDeviceMapper stationDeviceMapper;

    /**
     * 根据二级站id查询其所拥有的设备的id和设备名
     * @param stationDevice
     * @return
     */
    @Override
    public List<StationDevice> selectByStationId(StationDevice stationDevice) {
        return stationDeviceMapper.selectByStationId(stationDevice.getStationId());

    }
}
